package message

import (
	"car-thirdparty-api/api/message/v1"
	"car-thirdparty-api/internal/service"
	"context"
)

func (c *ControllerV1) SendMessage(ctx context.Context, req *v1.MessageSendReq) (res *v1.MessageSendRes, err error) {
	res = new(v1.MessageSendRes)
	res.MessageSendRes, err = service.MessageV1().SendMessage(ctx, req.MessageSendReq)
	if err != nil {
		return nil, err
	}
	return
}
